home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pesquisa Dirigida
/
Pesquisa Dirigida.iso
/
JOGOS
/
alloy.swf
/
scripts
/
DefineSprite_88
/
frame_1
/
DoAction.as
Wrap
Text File
|
2005-01-07
|
975b
|
54 lines
if(!init)
{
_root.combonum = 0;
if(_root.punch < 5)
{
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop(1);
}
set("../:chargelevel",1);
charge = 0;
init = 1;
if(!key.isDown(68))
{
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop(1);
}
}
if(key.isDown(68) and charge < 70)
{
_root.charging = 1;
if(key.isDown(83) and eval("../:chargelevel") >= 2)
{
tellTarget("..")
{
gotoAndStop("harpoon");
play();
}
}
charge++;
if(charge > 10)
{
set("../:chargelevel",3);
}
else if(charge > 3)
{
set("../:chargelevel",2);
_root.blood = "y";
}
_root.punch = 15;
_root.game.alloy.phold = 0;
if(charge > 68)
{
_root.punch = 0;
_root.game.alloy.phold = 67;
}
"../:stop"();
_root.combonum = 0;
}
else
{
"../:play"();
_root.charging = 0;
}